<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>逾期类型分类</a></li>
			<li><a href="{:U('collection/set')}">添加</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('collection/index')}">
			类型名称： 
			<input type="text" name="name" style="width: 200px;" value="{:I('request.name')}" placeholder="">
			<input type="submit" class="btn btn-primary" value="搜索" />
			<a class="btn btn-danger" href="">清空</a>
		</form>
		<form method="post" class="js-ajax-form">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">修改时间</th>
						<th>类型名称</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="list" item="vo">
					<tr>
						<td align="center">{$vo.crtime}</td>
						<td>{$vo.name}</td>
						<td align="center">
						<a href="{:U('collection/set',array('id'=>$vo['id']))}">编辑</a>
						<if condition="($vo.is_true eq 0)">
						<a class="js-ajax-dialog-btn" data-msg="是否确认启用?" href="{:U('collection/check_type',array('id'=>$vo['id']))}">启用</a>	
						<else/>
						<a class="js-ajax-dialog-btn" data-msg="是否确认关闭?" href="{:U('collection/check_type',array('id'=>$vo['id']))}">关闭</a>	
						</if>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>